package com.lqd.mall.log.service.factory;

import com.lqd.mall.basis.response.CommonResult;
import com.lqd.mall.interaction.system.SysOperLogEntity;
import com.lqd.mall.log.service.RemoteSysOperLogService;
import feign.hystrix.FallbackFactory;

/**
 * @author 零起点
 * @create 2022-03-02 22:38
 */
public class RemoteSysOperLogFallbackFactory implements FallbackFactory<RemoteSysOperLogService> {
    @Override
    public RemoteSysOperLogService create(Throwable cause) {
        return new RemoteSysOperLogService( ){

            @Override
            public CommonResult save(SysOperLogEntity entity,String source) {
                return CommonResult.FAIL();
            }
        };
    }
}
